Skip to content

feat: Slack interactive blocks + HITL approval flow#7539

Draft
Mustafa-Esoofally wants to merge 1 commit intomainfrom
feat/slack-hitl-approval-blocks
Draft

feat: Slack interactive blocks + HITL approval flow#7539
Mustafa-Esoofally wants to merge 1 commit intomainfrom
feat/slack-hitl-approval-blocks

Conversation

@Mustafa-Esoofally
Copy link
Copy Markdown
Contributor

Summary

Adds Block Kit support and a human-in-the-loop (HITL) approval flow to the Slack interface.

  • libs/agno/agno/os/interfaces/slack/blocks.py (new, ~4KB) — Block Kit message builders
  • libs/agno/agno/os/interfaces/slack/interactions.py (new, ~9KB) — interaction payload handler (button clicks, select menus)
  • libs/agno/agno/os/interfaces/slack/events.py, router.py, state.py — modifications to wire blocks + interactions into the Slack event loop
  • cookbook/05_agent_os/interfaces/slack/hitl_approval.py — end-to-end example where the agent proposes an action and a human approves via Slack button

Status: draft / needs review

Saved from a slack-enhancements worktree during cleanup. The original branch was merged to main via a different path; this is based on current main and needs:

  • Verify that router.py changes compose cleanly with the latest Slack router refactor
  • Test HITL approval end-to-end with a real Slack workspace
  • Align state persistence for pending approvals with the existing SlackInterface state model

Why

HITL approval is a common request for Slack-deployed agents (publishing, ticket creation, any destructive action). Block Kit gives the agent richer UI than plain text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant